package monster.com.cvh.event;

import java.util.Observable;

/**
 * @author: pengguanming
 * @data: 2018/4/24
 * @function:抛出刷新简历预览ID事件
 */
public class RefreshResumeTempleIdEvent extends Observable {
    private volatile static RefreshResumeTempleIdEvent instance;

    private RefreshResumeTempleIdEvent() {
    }

    public static RefreshResumeTempleIdEvent getInstance() {
        if (instance == null) {
            synchronized (RefreshResumeTempleIdEvent.class) {
                instance = new RefreshResumeTempleIdEvent();
            }
        }
        return instance;
    }

    public void onRefreshResumeTempleId(int templateId) {
        setChanged();
        notifyObservers(templateId);
    }

    public void onRefreshResumeTempleLock(boolean hasLock) {
        setChanged();
        notifyObservers(hasLock);
    }
}
